<?php

namespace app\health\validate;

class UserValidate extends BaseValidate
{
    protected $rule =   [
        'real_name'  => 'require',
        'id_card'  => 'require|checkIdCard'
    ];

    protected $message  =   [
        'real_name.require' => '请输入姓名',
        'id_card.require' => '请输入身份证号',
    ];

    // 场景验证
    protected $scene = [
        'id_card' => ['id_card', 'real_name']
    ];
}
